package com.xiaochen.baidu.service;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

import java.util.Map;

/**
 * @author xc
 * @date 2025/10/12/16:41
 * @desc
 */
public interface IMoiuParseService {
    @GET("/api/oauth/callback")
    Call<ResponseBody> callback(@Query("code") String code, @Query("state") String state) throws Exception;
    //surl + pwd + password + dir
    @POST("/api/List")
    Call<ResponseBody> list(@Body Map<String,Object> map) throws Exception;
    @POST("/api/v1/parse")
    Call<ResponseBody> link(@Header("x-session") String session,@Body Map<String,Object> map) throws Exception;
}
